<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
</head>
<body>
	<img src="/i/eg_logo_w3school.gif" alt="W3School.com.cn" longdesc="40492262844a9ad8b52c2a85759b09e12009037607cf7ad4aec1c2862de1e7a4">
	<input id="esdCaptchaCode" value="CF1EF5D48788D8CAFF03C6C8A01DFAAA"/>
	<script type="text/javascript">
	var esdYzmAudioTimeId;
	function readCaptchaCode() {
		getCookie = function(name){
		    var nameEQ = name + "=";
		    var ca = document.cookie.split(';');
		    for (var i = 0; i < ca.length; i++) {
		        var c = ca[i];
		        while (c.charAt(0) == ' ') 
		            c = c.substring(1, c.length);
		        if (c.indexOf(nameEQ) == 0) 
		            return c.substring(nameEQ.length, c.length);
		    }
		    return null;
		};
		// 1. 获取加密代码
		//window.sessionStorage.getItem()
	    var encryptCaptcha =  getCookie("hdyzcode")
	    var encryptCaptcha =  "9D9C73A1F6FE00817501F1549B8A11F05EB695040D81AFBC5C596701A02879F8";
	    console.log(encryptCaptcha);
		// 2. 发送
		$.ajax({
			type: 'GET',
			url: "http://192.168.170.130/ws/dec",// 鏃犻殰纰嶄簯杞崲MP3璺緞
			dataType: 'jsonp',
			jsonp: "callback",
			data: {
				"b": encryptCaptcha,
				"s": "4"
			},
			async: false,
			success: function (data) {
				$("body").append('<audio autoplay="autoplay" src="'+data.u+'"></audio>');
			},
			error:function(e){
				console.log(e);
			}
		});
	}
	readCaptchaCode();
	</script>
	
	
	
</body>
</html>